<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<html>
<head>
    <title>志愿者信息</title>
    <script type="text/javascript" src="${ctx}/static/js/jsAddress.js"></script>
</head>
<body>

<%--private String mobile;//手机号--%>
<%--private String realName;//真实姓名--%>
<%--private String province;//省市--%>
<%--private String city;//城市--%>
<%--private String district;//区县--%>
<%--private String cardType;//证件类型--%>
<%--private String cardNO;//证件号--%>
<%--private String residenceAddress;//现居住地--%>
<%--private String job;//工作--%>
<%--private String serviceField;//服务领域--%>
<%--private String skill;//服务技能--%>
<%--private Date crateTime;//创建时间--%>
<%--private String cardImgOne;//图片1--%>
<%--private String cardImgTwo;//图片2--%>

<div class="content">
            <div class="form-group">
                <h3 class="item-title">基础信息</h3>
                <div class="form-item">
                    <label for="">手机号:${certification.mobile}</label>
                </div>
                <div class="form-item">
                    <label for="">姓名:${certification.realName}</label>
                </div>

                <div class="form-item">
                    <label for="">现居住地:${certification.province} ${certification.city} ${certification.district}</label>
                </div>
                <div class="form-item">
                    <label for="">证件号:${certification.cardNO}</label>
                </div>
                <div class="form-item">
                    <label for="">工作:${certification.job}</label>
                </div>
                <div class="form-item">
                    <label for="">serviceField:${certification.serviceField}</label>
                </div>
                <div class="form-item">
                    <label for="">服务技能:${certification.skill}</label>
                </div>
                <div class="form-item">
                    <label for="">图片1:</label>
                    <img src="${certification.cardImgOne}" width="500px" height="500px">
                </div>
                <div class="form-item">
                    <label for="">图片2:</label>
                    <img src="${certification.cardImgOne}" width="500px" height="500px">
                </div>
            </div>
    <div>
        <button class="btn" onclick="history.back(-1);">返回</button>
        <button class="btn" onclick="javascript:verfier('${certification.memberCode}','2');">通过</button>
        <button class="btn" onclick="javascript:verfier('${certification.memberCode}','-1');">拒绝</button>
    </div>
</div>
<script>
    function verfier(memberCode,status)
    {
        var url = "${ctx}/volunteer/verfier";
        $.post(url, {"memberCode":memberCode,"status": status}, function (result) {
            alert(result.message);
        }, "json");
    }
</script>
</body>
</html>